#import "WishlistRequest.h"
#import "Utils.h"
#import "SBJson.h"

@implementation WishlistRequest

-(void) makeRequest:(NSDictionary*)dictionary
{
	NSLog(@"%@",[dictionary JSONRepresentation]);
	[super requestTo:@"Wishlist" withBody:[dictionary JSONRepresentation]];
}

-(void) notifyIfConnectionFail:(NSError*)error
{
	NSLog(@"notifyIfConnectionFail:%@",[error localizedDescription]);
	UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Login Fail" message:@"Connection Error" delegate:nil cancelButtonTitle:@"Dismiss" otherButtonTitles:nil];
	[alert show];
	[alert release];
}

-(void) processResult:(NSDictionary*)result
{
	NSDictionary *resultDict = [result valueForKey:@"WishlistResult"];
	if (resultDict) {
		
		
	}
	BOOL rsRet = [[resultDict objectForKey:@"isSuccessful"] boolValue];
	if (_delegate && [_delegate respondsToSelector:@selector(processRequestResult:)]) {
		[_delegate processRequestResult:rsRet];
	}
}

@end
